package com.rui.study.micro.template.manage.controller;


import com.rui.study.commons.model.BaseController;
import com.rui.study.commons.model.Result;
import com.rui.study.micro.template.manage.service.AnnService;
import com.rui.study.micro.template.manage.util.StatusCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: study_20180824
 * @description: 模板服务-内部接口
 * @author: Yaowr
 * @create: 2018-08-29 10:01
 **/
@RestController
@RefreshScope
@RequestMapping("/api")
public class ApiController extends BaseController {

    @Autowired
    private AnnService templateService;


    @GetMapping("/v1/test")
    public Result<String> test() {
        return new Result(StatusCode.SUCCEED, "hello world");
    }

}
